<!DOCTYPE html>
<html lang="zh">
  <head>
    {% load static %}
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=111, initial-scale=1.0" />
    <link rel="stylesheet" href="login.css">
    <title>登录</title>
  </head>
  <body>
   <div class="box">
    <h2>登陆</h2>
   
     
    <form method="post" action="/login/">
      {% csrf_token %} {% if error %} {{ error }} {% endif %}
      <div class="inputbox"><label>账号:</label> <input type="text" name="username" /></div>
      <div class="inputbox"><label>密码:</label> <input type="password" name="password" /></div>
      <input type="submit" name="login" value="登录" />
    
    </div>
    </form>
  </body>
</html>
